<template>
    <el-col class="goodslist">
        <el-row v-for="item in lists">
            <el-card class="onegoods" :body-style="{ padding: '0px' }">
                <el-col :span=1>
                    <img :src="item.imgurl" height=200px width=200px @click="openurl(item.url)" >
                </el-col>
                <el-col :span=23>
                    <div class="infos">
                        <span @click="openurl(item.url)">买买买买买,只要998</span>
                    </div>
                    <div class="deal" style="padding: 12px;">
                        <span><font color="#dc143c" @click="openurl(item.url)">￥999包邮</font></span>
                    </div>
                </el-col>
            </el-card>
        </el-row>
    </el-col>
</template>

<script>
    export default {
        data() {
            return {
            };
        },
        props:{
            lists:Array
        },
        methods: {
            openurl (url) {
                console.log(url)
                window.open(url)
            }
        }
    }
</script>

<style>
    .time {
        font-size: 13px;
        color: #999;
    }

    .goodslist {
        display: flex;
        flex-flow: column;
        margin-top:5px;
    }

    .goodslist .onegoods {
        display: flex;
        flex-flow: row;
        margin-top:5px;
        width: 1200px;
        height: 200px;
    }

    .goodslist .onegoods .infos{
        display: flex;
        flex-flow: row;
        margin-top:5px;
        margin-left: 200px;
    }

    .goodslist .onegoods .deal{
        display: flex;
        flex-flow: row;
        margin-top:5px;
        margin-left: 200px;
    }
    .goodslist img {
        cursor: pointer;
    }
    .goodslist span {
        font-size: 20px;
        cursor: pointer;
    }
</style>